﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcRouteTest.Controllers
{

	public class Tests
	{
		public int Id { get; set; }
		public string Name { get; set; }
	}
	public class HomeController : Controller
	{
		//
		// GET: /Home/

		public ActionResult Index()
		{
			ViewBag.Controller = "Home";
			ViewBag.Action = "Index";
			return View("ActionName");
		}

		public ActionResult Test(Tests test)
		{
			return Content(string.Format("{0}_{1}", test.Id, test.Name));
		}

	}
}
